FROM jdk:1.0 
# Maintainer
LABEL maintainer lsy<3397316724@qq.com>


RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

WORKDIR /data/app/ 

ARG JAR_FILE=lucky-draw-1.0-SNAPSHOT.jar

COPY ${JAR_FILE} app.jar

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

ENTRYPOINT ["java","-jar","app.jar"]

